package com.fita.admin.service.authority;

import com.fita.admin.service.DataService;
import com.fita.entity.authority.Role;
import com.fita.entity.authority.RoleTemplate;
import com.fita.entity.principal.Principal;

import java.util.Map;


/**
 *
 * @author Ark
 *
 */
public interface RoleService extends DataService<Role> {
    
    /**
     * @param roleTemplate
     * @return
     */
    public int count(RoleTemplate roleTemplate);

    /**
     * @return
     */
    public Map<String, Role> list();

    /**
     * @param principal
     * @return
     */
    public Role loadRole(Principal principal);
    
}
